<include file="Public/header" />
<script type="text/javascript">
function submit_delete_batch(){
    /* 获取选中的项 */
    var items = '';
    $('.checkitem:checked').each(function(){
        items += this.value + ',';
    });
    if(items != '') {
        items = items.substr(0, (items.length - 1));
        submit_delete(items);
    }  
    else {
        alert('请选择要操作的对象');
    }
}
function submit_delete(id)
{
    if(confirm('确认删除?')) 
	{
        $('#member_id').val(id);
        $('#list_form').submit();
    }
}
</script>
<div class="page">
  <div class="fixed-bar">
    <div class="item-title">
      <h3>会员管理</h3>
      <ul class="tab-base">
        <li><a href="javascript:void(0);" class="current"><span>管理</span></a></li>
      </ul>
    </div>
  </div>
  <div class="fixed-empty"></div>
  <form method="get" name="formSearch">
    <table class="tb-type1 noborder search">
      <tbody>
        <tr>
          <th>会员名称</th>
          <td><input type="text" value="{$search['member_name']}" name="member_name" class="txt" ></td>
          <td><a href="javascript:document.formSearch.submit();" class="btn-search tooltip" title="查询">&nbsp;</a></td>
        </tr>
      </tbody>
    </table>
  </form>
  <!-- 操作说明 -->
  <table class="table tb-type2" id="prompt">
    <tbody>
      <tr class="space odd">
        <th colspan="12" class="nobg"><div class="title">
            <h5>操作提示</h5>
            <span class="arrow"></span></div></th>
      </tr>
      <tr>
        <td>
		  <ul>
            <li>可以查看会员，对会员进行删除操作</li>
          </ul>
		</td>
      </tr>
    </tbody>
  </table>
  <form id="list_form" method='post' action="{:U('Member/member_del')}">
    <input id="member_id" name="member_id" type="hidden" />
    <table class="table tb-type2">
      <thead>
        <tr class="space">
          <th colspan="15" class="nobg">列表</th>
        </tr>
        <tr class="thead">
          <!--<th class="w48"></th>-->
          <th class="w48">用户名</th>
          <th class="w48">真实姓名</th>
		  <!-- <th class="w48">邮箱</th> -->
		  <!-- <th class="w48">职位</th> -->
		  <!-- <th class="w200">自我介绍</th> -->
		  <th class="w200">注册时间</th>
		 <!--  <th class="w48">地区</th>
		  <th class="w200">标签</th> -->
		  <th class="w200 align-center">操作</th>
        </tr>
      </thead>
      <tbody>
        <notempty name="list">
        <volist name="list" id="val">
        <tr class="hover edit">
          <!--<td><input type="checkbox" value="{$val['member_id']}" class="checkitem"></td>-->
          <td>{$val['member_name']}</td>
		  <td>{$val['truename']}</td>
		  <!-- <td>{$val['email']}</td> -->
		  <!-- <td>{$val['profession']}</td> -->
		  <!-- <td>{$val['introduce']}</td> -->
		  <td>{$val['register_time']|date='Y-m-d',###}</td>
		  <!-- <td>{$val['usercity']}</td>
		  <td>
		  |<volist name="val['tag']" id="vo">
		  	{$vo['ac_id']|get_article_class_name}|
		  </volist>
		  </td> -->
		  <td class='align-center'>
		 <!--  <if condition="$val['vip_level'] eq 0">
		  <a href='javascript:if(confirm("确定要设置超级权限？"))window.location ="{:U('Member/vip',array('member_id'=>$val['member_id']))}";'>设置超级权限</a>
		  <else/>
		  <a href='javascript:if(confirm("确定要取消超级权限？"))window.location ="{:U('Member/vip',array('member_id'=>$val['member_id']))}";'>取消超级权限</a>
		  </if> -->
               <a class="barbecue" href="{:U('Member/member_edit',array('id'=>$val['member_id']))}">编辑</a>
		   <!--<a class="barbecue" dialog_id="edit" nc_type="dialog" dialog_title="擅长领域" dialog_width="500" uri="{:U('curdExpertise',array('id'=>$val['member_id']))}" href="javascript:void(0);">擅长领域</a>-->
	<!-- 	  <a href='javascript:if(confirm("确定要删除？"))window.location ="{:U('Member/member_del',array('member_id'=>$val['member_id']))}";'>删除</a> -->
          </td>
        </tr>
        </volist>
        <else/>
        <tr class="no_data">
          <td colspan="10">暂无记录</td>
        </tr>
        </notempty>
      </tbody>
      <notempty name="list">
      <tfoot>
        <tr class="tfoot">
          <td><!--<input type="checkbox" class="checkall" id="checkall_1">--></td>
          <td id="batchAction" colspan="15">
             <!--<span class="all_checkbox">
            <label for="checkall_1">全选</label>
            </span>&nbsp;&nbsp; <a href="javascript:void(0)" class="btn" onclick="submit_delete_batch();"><span>删除</span></a>-->
            <div class="pagination">{$page_show}</div>
        </tr>
      </tfoot>
      </notempty>
    </table>
  </form>
</div>
<script type="text/javascript" src="__STATIC__/common.js"></script>  
<script language="javascript" src="__STATIC__/dialog/dialog.js"  id="dialog_js" charset="utf-8"> </script> 
<script type="text/javascript" src="__STATIC__/jquery-ui/jquery.ui.js"></script> 
<script type="text/javascript" src="__STATIC__/jquery-ui/i18n/zh-CN.js" charset="utf-8"></script>
<link rel="stylesheet" type="text/css" href="__STATIC__/jquery-ui/themes/ui-lightness/jquery.ui.css"  />
<link href="__STATIC__/dialog/custom.css" rel="stylesheet" type="text/css">
<script type="text/javascript">
$('a[nc_type="dialog"]').click(function(){
	var id = $(this).attr('dialog_id');
	var title = $(this).attr('dialog_title') ? $(this).attr('dialog_title') : '';
	var url = $(this).attr('uri');
	var width = $(this).attr('dialog_width');
	CUR_DIALOG = ajax_form(id, title, url, width,0);
	return false;
});
</script>
<include file="Public/footer" />